#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QApplication::setQuitOnLastWindowClosed(false);
    QWidget *parent = new QWidget;
    MainWindow *pDemo = new MainWindow(parent);
    pDemo->show();
    pDemo->activateWindow();
    int ret = a.exec();
    delete parent;
    return ret;
}
